]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Use MetaWindow.get_frame_rect()
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 18 Sep 2014 21:02:45 +0000 (22:02 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 9 Oct 2014 10:17:15 +0000 (12:17 +0200)
get_outer_rect() has been deprecated for a while, use the new
function instead.

js/ui/keyboard.js
js/ui/panel.js
js/ui/windowManager.js
js/ui/workspace.js
js/ui/workspaceThumbnail.js

index b3de70b9aec7930749ee5c268a3c34245cec25c5..1855adc21f50b3d69c2cde81fe2df456dca21a50 100644 (file)
@@ -610,7 +610,7 @@ const Keyboard = new Lang.Class({
 
     _moveTemporarily: function () {
         let currentWindow = global.screen.get_display().focus_window;
-        let rect = currentWindow.get_outer_rect();
+        let rect = currentWindow.get_frame_rect();
 
         let newX = rect.x;
         let newY = 3 * this.actor.height / 2;
index 3c2ab6bef96e4a979538d9b2cfaff0e3abfadb74..05d43f96f63f85cf5e77a34cf6c4da102d65d9f6 100644 (file)
@@ -1019,7 +1019,7 @@ const Panel = new Lang.Class({
         if (!dragWindow)
             return Clutter.EVENT_PROPAGATE;
 
-        let rect = dragWindow.get_outer_rect();
+        let rect = dragWindow.get_frame_rect();
         let [stageX, stageY] = event.get_coords();
 
         let allowDrag = dragWindow.maximized_vertically &&
index ac723a5166f0ea34ce5aa0c09bfa1cb645ec6057..60ab30f7a30d42b9328871347303e872c53342e0 100644 (file)
@@ -413,7 +413,7 @@ const TilePreview = new Lang.Class({
                                                    y: monitor.y,
                                                    width: monitor.width,
                                                    height: monitor.height });
-            let [, rect] = window.get_outer_rect().intersect(monitorRect);
+            let [, rect] = window.get_frame_rect().intersect(monitorRect);
             this.actor.set_size(rect.width, rect.height);
             this.actor.set_position(rect.x, rect.y);
             this.actor.opacity = 0;
index 07f1b3eb659728fcbaca5b8403c995bd5d66b73b..e9ab1676baa9f028e0db971a556adc48227ac6d8 100644 (file)
@@ -254,7 +254,7 @@ const WindowClone = new Lang.Class({
     },
 
     _computeBoundingBox: function() {
-        let rect = this.metaWindow.get_outer_rect();
+        let rect = this.metaWindow.get_frame_rect();
 
         this.actor.get_children().forEach(function (child) {
             let realWindow;
@@ -264,7 +264,7 @@ const WindowClone = new Lang.Class({
                 realWindow = child.source;
 
             let metaWindow = realWindow.meta_window;
-            rect = rect.union(metaWindow.get_outer_rect());
+            rect = rect.union(metaWindow.get_frame_rect());
         }, this);
 
         // Convert from a MetaRectangle to a native JS object
index ea859c7be386c864e4200b5ce18e96cb10345314..3adc327114cbb5ae55d94e6c122661604568a136 100644 (file)
@@ -161,14 +161,14 @@ const WindowClone = new Lang.Class({
 
     _updateDialogPosition: function(realDialog, cloneDialog) {
         let metaDialog = realDialog.meta_window;
-        let dialogRect = metaDialog.get_outer_rect();
-        let rect = this.metaWindow.get_outer_rect();
+        let dialogRect = metaDialog.get_frame_rect();
+        let rect = this.metaWindow.get_frame_rect();
 
         cloneDialog.set_position(dialogRect.x - rect.x, dialogRect.y - rect.y);
     },
 
     _onPositionChanged: function() {
-        let rect = this.metaWindow.get_outer_rect();
+        let rect = this.metaWindow.get_frame_rect();
         this.actor.set_position(this.realWindow.x, this.realWindow.y);
     },